package com.bys.system.mapper;

import com.bys.system.model.SysMenuModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bys.system.vo.SysMenuVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* <p>
    * 菜单表 Mapper 接口
    * </p>
*
* @author bys
* @since 2023-03-31
*/
public interface SysMenuMapper extends BaseMapper<SysMenuModel> {

    List<SysMenuVo> selectMenu(@Param("parentId") Long parentId);

    List<SysMenuModel> selectMenuByUserId(@Param("userId") Long userId);
}
